<%@ page import="com.xugou.pojo.Dept" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ftm" uri="http://java.sun.com/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>部门员工信息</title>
    <link rel="stylesheet" href="../../static/css/root/css_01.css">
    <!--引入bootStrap-->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

</head>
<body>
<div class="container">
    <div class="panel panel-primary">                      <!--物品信息和服务信息填写-->
        <div class="panel-heading">
            <h3 class="panel-title"><span class="glyphicon glyphicon-user"></span>  部门员工信息</h3>
        </div>

        <table class="table">
            <thead>
            <tr>
                <th>部门名称</th>
                <th>员工ID</th>
                <th>员工姓名</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <c:forEach var="deptVar" items="${deptlist}">
                <c:forEach var="t" items="${deptVar.empList}">
                    <tr>
                        <td>${deptVar.deptName}</td>
                        <td>${t.empId}</td>
                        <td>${t.empName}</td>
                        <td>
                            <a href="${pageContext.request.contextPath}/emp/toEmpInfo/${t.getEmpId()}">查看</a> |
                            <a href="${pageContext.request.contextPath}/emp/toUpdateEmoInfo/${t.getEmpId()}">修改</a> |
                            <a href="${pageContext.request.contextPath}/emp/deleteEmpInfo/${t.empId}">删除</a>
                        </td>
                    </tr>
                </c:forEach>
            </c:forEach>
            </tbody>
        </table>

    </div>
    <div class="container1">
        <div class="btn">
            <a href="${pageContext.request.contextPath}/emp/toAddEmp"><font color="black">新增部门员工</font></a>
        </div>
    </div>


</div>
</body>
</html>
